package apiday01;
//String 和 StringBuilder的演示
public class StringAndStringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("a");
        for (int i = 0; i < 10000000; i++) {
            builder.append(i);
        }
        System.out.println("执行完毕");






















        /*
        String str = "a";
        for (int i = 0; i < 10000000; i++) {
            str = str+i;
        }
        System.out.println("执行完毕");

         */
    }
}
